If block-create didn't work, then chances are block-destroy doesn't work
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sat, 13 Aug 2005 09:06:44 +0000 (09:06 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sat, 13 Aug 2005 09:06:44 +0000 (09:06 +0000)
either right :-)

In this case, XendDomain.py is just calling a function that doesn't
exist (device_destroy instead of device_delete).

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
tools/python/xen/xend/server/controller.py

index a1446c309316ed5eb26411355f1fad428c831338..973398f090fdf4f80eee7eac1e28a07b8475c715 100755 (executable)
@@ -325,7 +325,7 @@ class DevController:
         return self.destroyed
 
     def getDevice(self, id, error=False):
-        dev = self.devices.get(id)
+        dev = self.devices.get(int(id))
         if error and not dev:
             raise XendError("invalid device id: " + str(id))
         return dev